package com.example.floristshop.database;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

public class Comment extends LitePalSupport {
    //评价时间
    @Column(nullable = false)
    private long timestamp;
    //内容
    @Column(nullable = false)
    private String text;
    //鲜花ID
    @Column(nullable = false)
    private long flower_id;
    //用户ID
    @Column(nullable = false)
    private long user_id;


    //Constructors
    public Comment(long timestamp, String text, long flower_id, long user_id) {
        this.timestamp = timestamp;
        this.text = text;
        this.flower_id = flower_id;
        this.user_id = user_id;
    }


    //Setters
    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public void setText(String text) {
        this.text = text;
    }

    public void setFlower_id(long flower_id) {
        this.flower_id = flower_id;
    }

    public void setUser_id(long user_id) {
        this.user_id = user_id;
    }


    //Getters
    public long getTimestamp() {
        return timestamp;
    }

    public String getText() {
        return text;
    }

    public long getFlower_id() {
        return flower_id;
    }

    public long getUser_id() {
        return user_id;
    }
}
